package com.egao.common.module.marketPush.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.egao.common.core.web.JsonResult;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.marketPush.entity.MarketPush;
import com.egao.common.module.marketPush.param.MarketPushParams;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author lym
 * @date 2024/5/27 14:35
 */
public interface MarketPushService extends IService<MarketPush> {

    /**
     * 查询列表
     * @param page page
     * @return List<MarketPush>
     */
    List<MarketPush> listPage(PageParam<MarketPush> page);

    /**
     * 查询学号
     * @param marketPushParams marketPushParams
     * @return List<String>
     */
    List<String> listXh(MarketPushParams marketPushParams);

    /**
     * 发送通知
     * @param marketPushParams marketPushParams
     * @return JsonResult
     */
    JsonResult send(MarketPushParams marketPushParams, Integer loginUserId);

    /**
     * 下载记录
     * @param marketPushId marketPushId
     * @param response response
     */
    void exportExcel(Integer marketPushId, HttpServletResponse response);
}
